<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<link rel="stylesheet" type="text/css" href="style/style.css" title="Default" media="screen" />
	<title>IMAREC - Image Recognition Software</title>
	
</head>

<body>
	<div id="header">
		<div id="topBorder">
			<div id="topLeftCorner"></div>
			<div id="topCenterBorder"></div>
			<div id="topRightCorner"></div>
		</div>
		<div id="leftBorder"></div>
		<div id="page">
			<div id="leftColumn">
				<img src="style/logo.png" alt="IMAREC logo"/>
				<ul>
					<li><a href="<s:url action="home" namespace="/" />" id="active"><s:text name="main.home" /></a></li> <!-- Dodaj lub wyszukaj -->
					<li><a href="<s:url action="listPhotos" namespace="/" />"><s:text name="main.gallery" /></a></li> <!-- Galeria -->
				</ul>
			</div>
			<div id="rightColumn">
				<h3>Dodaj zdjęcie</h3>
				<fieldset>
					<s:form action="addPhoto" namespace="/" method="POST" enctype="multipart/form-data">
						<s:textfield key="addphoto.title" name="image.title" size="80"/>
						<s:file key="addphoto.file" name="photoFile" />
						<s:submit key="addphoto.submit" name="" />
					</s:form>
				</fieldset>
				<br/>
				<h3>Wyszukaj</h3>
				<fieldset>
					<s:form action="searchPhoto" namespace="/" method="POST" enctype="multipart/form-data">
						<s:file key="searchphoto.file" name="photoFile" />
						<s:submit key="searchphoto.submit" name="" />
					</s:form>
				</fieldset>
			</div>
		</div>
		<div id="rightBorder"></div>
	</div>
	<div id="footer">
		<div id="footerPos">
			<div id="footerLeftBorder"></div>
			<div id="bar"></div>
			<div id="footerRightBorder"></div>
		</div>
	</div>
	
	<script type="text/javascript">
		<!--
		var height = ((document.getElementById('page').offsetHeight) + 'px');
		document.getElementById('leftBorder').style.height = height;
		document.getElementById('rightBorder').style.height = height;
		-->
	</script>
	
</body>
</html>